package com.example.demo.action;

import com.example.demo.mvc.frame.annotation.GPAutoWired;
import com.example.demo.mvc.frame.annotation.GPController;
import com.example.demo.mvc.frame.annotation.GPRequestMapping;
import com.example.demo.service.DemoService;
import com.example.demo.service.IndexService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zzf
 * @date 2018/8/10 21:01.
 */
@GPRequestMapping("/demo")
@GPController
public class DemAction {

    @GPAutoWired
    private DemoService demoService;
    @GPAutoWired
    private IndexService indexService;

    @GPRequestMapping("/hello")
    public Object hello(@RequestParam String name) {
        demoService.say(name);
        return null;
    }
}
